package com.darren.euc.service;

import java.util.List;
import java.util.Map;

import com.darren.euc.entity.PageBean;
import com.darren.euc.entity.Room;

import net.sf.json.JSONObject;

public interface RoomService {
    
	public Room save(Room room);
    
	public Room update(Room room);
	
	public void delete(Room room);
	
	public Room findRooById(Integer roomId);
	
	public List<Room> findRooByMemberId(Integer memberId);
	
	public List<Room> findRooByMemberIdWithoutTimeLimit(Integer memberId);
	
	public List<Room> findRoomBySpaceId(Integer spaceId);
    
	public List<Room> getAll();
	
	public List<Room> getRoomByClientAndSpaceId(Integer clientId,Integer spaceId);
    
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public List<Room> queryAvaliableRoom(Integer spaceId,String roomName,String rentStart,String rentEnd); 
	
	public Map<String,Object> getUsedDetail(Integer roomId); 
    
}